﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace SmartAgricultureService.Tables
{
    [Table("Area")]
    public class AreaEntry
    {
        [Key]
        [MaxLength(50)]
        public string Id { get; set; }
        [MaxLength(100)]
        public string Name { get; set; }
        [Required]
        [MaxLength(10)]
        public string Code { get; set; }
        public bool Active { get; set; }
        public bool Delete { get; set; }
        public virtual ICollection<DeviceEntry> Devices { get; set; }
    }
}